cmake_minimum_required(VERSION 3.8)
project(PackageTest CXX)

find_package(cpp_redis CONFIG REQUIRED)

add_executable(example src/example.cpp)
target_link_libraries(example cpp_redis::cpp_redis)
# cpp_redis需要C++11支持
set_target_properties(example PROPERTIES CXX_STANDARD_REQUIRED ON CXX_STANDARD 11)